<div class="panel panel-default panel-intro">
	<div class="panel-heading">
		<div class="panel-lead">
			<p><em>仪器数据上传信息</em></p>
			<p>1, 仪器类型:{$uploadInfo['recordInfo']['type']}, 支持文件后缀为:{$uploadInfo['suffix']}.</p>
			<p>2, 剩余可上传文件数:{$uploadInfo['remain']['num']}, 剩余空间数:{$uploadInfo['remain']['formatSize']}.</p>
            <p>3, 本次最大可上传文件数:{$allowUploadTimes}.</p>
		</div>
	</div>
</div>
<style type="text/css">
@import url("__CDN__/assets/libs/webix/codebase/webix.css");
@import url("__CDN__/assets/libs/webix/codebase/filemanager.css");
</style>	
<form id="upload-form" class="form-horizontal" role="upload-form" data-toggle="validator" method="POST" action="/admin/filedata/addimportfile">

    <div class="form-group" style="padding-top:20px;">
        <label for="c-datafiles" class="control-label col-xs-12 col-sm-2">{:__('Datafiles')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="filedataattachmentid" data-rule="required" class="form-control" size="50" name="row[fileattachmentids]" type="hidden" value="" readonly="">
                <input id="filedatasize" data-rule="required" class="form-control" size="50" name="row[fileattachmentsize]" type="hidden" value="" readonly="">
                <input id="c-datafiles" data-rule="required" class="form-control" size="50" name="row[datafiles]" type="text" value="" readonly="">
                <input data-rule="required" class="form-control" size="50" name="row[ids]" type="hidden" value='{$uploadInfo["recordInfo"]["ids"]}' readonly="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-datafiles" data-filedataattachmentid="filedataattachmentid" data-filedatasize="filedatasize" data-viewitem="filedataviewitems" data-url="/admin/ajax/uploadfiledata" data-multipart='{"instype":"{$uploadInfo["recordInfo"]["type"]}","filedataId":{$uploadInfo["recordInfo"]["ids"]}}' class="btn btn-danger plupload" data-maxsize="{$uploadInfo['remain']['size']}" data-maxcount="{$allowUploadTimes}" data-mimetype="{$uploadInfo['suffix']}" data-input-id="c-datafiles" {$uploadInfo['recordInfo']['allowupload']} data-multiple="true" data-role="filedata"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <!-- <span><button type="button" id="fachoose-datafiles" class="btn btn-primary fachoose" data-input-id="c-datafiles" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span> 
                    plupload  disabled="{$uploadInfo['recordInfo']['allowupload']}" {'"'instype'"':ZD16,"filedataId":21} '{"instype":{$uploadInfo["recordInfo"]["type"]},"filedataId":{$uploadInfo["recordInfo"]["ids"]}}'
                    -->
                </div>                
                <span class="msg-box n-right" id="data-prview-id" for="c-datafiles"></span>
            </div>
            
        </div>
    </div>
    <div class="form-group">
        <label for="c-refreshtime" class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <div style="height: 100%; width: 100%; overflow: hidden;" id="filedataviewitems">
                                
            </div>
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
           <!--  <button id="k-reset" type="reset" class="btn btn-default btn-embossed">{:__('Cancel')}</button> -->
        </div>
    </div>
</form>

